package com.jjs.jcenterdemo;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.net.HttpURLConnection;
import java.util.List;

/**
 * Created by ytf on 2018/2/5 005.
 * Description:
 */

public class BeanAdapter extends BaseQuickAdapter<Bean, BaseViewHolder>
{

    public BeanAdapter(int layoutResId, @Nullable List<Bean> data)
    {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Bean item)
    {
        helper.setText(R.id.title, item.name);
        helper.setText(R.id.price, String.valueOf(item.price));
    }
}
